package com.mvc.app.exceptions;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/28/12
 * Time: 11:36 AM
 */

public class IncompleteModelException extends Exception {

    private Map<String, Object> properties;
    private Map<String, Object> beans;


    public IncompleteModelException(Throwable cause) {
        super(cause);

    }

    public IncompleteModelException(String message, Map<String, Object> leftOutProperties, Map<String, Object> instance) {
        super(message);
        this.properties = leftOutProperties;
        this.beans = instance;
    }

    public Map<String, Object> getBeans() {
        return beans;
    }

    public Map<String, Object> getProperties() {
        return properties;
    }
}
